//
//  NetworkTools.h
//  coca
//
//  Created by 张帅 on 15/9/27.
//  Copyright © 2015年 ZhangShuai. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <AFHTTPSessionManager.h>
#import <ReactiveCocoa/ReactiveCocoa.h>
#import <ReactiveCocoa/RACEXTScope.h>
typedef enum : NSUInteger {
    POST,
    GET
    
}RequestMethod;

typedef void(^HMNetFinishedCallBack)(NSDictionary*result, NSError *error);

@interface NetworkTools: AFHTTPSessionManager;

@property(nonatomic,copy) NSString* redirectUri;


-(RACSignal*)loadAccessTokenwithCode:(NSString*)code;


-(RACSignal*)loadUserInfoWithuid:(NSString*)uid ;

-(RACSignal*)loadStatussince_id:(NSInteger)since_id  max_id:(NSInteger)max_id;

-(RACSignal*)sendStatus:(NSString *)status image:(UIImage*)image;

-(BOOL)appendTokenWithParameters:(NSMutableDictionary*)parameters;



-(NSURL *)oauthUrl;

+ (instancetype)sharedTools;





@end
